package com.example.mybatisplusclass2.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author liu
 * @since 2024-06-11 14:07:25
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_product")
public class Product {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("`name`")
    private String name;

    @TableField("`description`")
    private String description;

    @TableField("price")
    private Integer price;

    @TableField(value = "filepath", exist = false)
    private String filepath;
}
